package com.zzw.bridge.system.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.zzw.bridge.security.user.UserDetail;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>项目名称: zzw-tech </p>
 * <p>包名称: com.zzw.mis.system.vo </p>
 * <p>描述: 用户登录 </p>
 * <p> 用户登录 </p>
 * <p>创建时间: 2022/11/15 11 </p>
 *
 * @author coco
 * @version v1.0
 */
@Data
@AllArgsConstructor
@Schema(description = "用户登录")
@NoArgsConstructor
public class SysTokenVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Schema(description = "access_token")
	private String accessToken;

	@Schema(description = "登录用户id")
	private String userId;

	@Schema(description = "用户信息")
	private UserDetail userDetail;

	@Schema(description = "用户登录过期时间（秒），-1表示永不过期")
	private Long expireTime;


	public SysTokenVO(String access_token) {
		this.accessToken = access_token;
	}

}
